﻿namespace ch05.binary.wasm_reader
{
    public partial struct WasmReader
    {
        // indices
        private uint[] ReadIndices()
        {
            var vec = new uint[ReadVarU32()];
            for (var i = 0; i < vec.Length; i++)
            {
                vec[i] = ReadVarU32();
            }

            return vec;
        }
    }
}